/**
 * @Copyright:Copyright (c) 2007 - 2023
 * 
 */
package com.tengtong.commons.json.impl;

import java.util.ArrayList;

import com.tengtong.commons.json.Json;
import com.tengtong.commons.json.Jsons;

/**
 * Jsons 的一个默认实现
 *
 * @author lin_jinming
 * @since: v1.0
 */
public class DefaultJsonsImpl extends ArrayList<Json> implements Jsons{

    private static final long serialVersionUID = 1L;

    public final static DefaultJsonsImpl of() {
        return new DefaultJsonsImpl();
    }
    
    public final static DefaultJsonsImpl of(Json json) {
        var result = new DefaultJsonsImpl();
        result.add(json);
        return result;
    }
}
